/**
 * 
 */
package dao;

import java.util.List;

import service.UserQueryHelper;
import model.Administrator;
import model.Door;
import model.Log;
import model.Message;
import model.User;

/**
 * @ClassName: UserDao
 * @Description:
 * @author Hongming Wu
 * @date 2013-12-6
 * 
 */
public interface UserDao {

	public User getUserByID(String userID);

	public User getUserByName(String userName);

	public void updateUser(User user);

	public Integer countMylogs(UserQueryHelper helper, User user);

	public List<Log> getScopedLogs(UserQueryHelper helper, User user,
			int begin, int end);
	
	public void createMsg(User user,Message msg);

	public void openDoor(Door door);
	

}
